package com.xbb.monitor.repository;

import com.xbb.monitor.entity.Network;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NetworkRepository extends JpaRepository<Network,Long> {
    @Query("select name from Network group by name")
    public List<String> getName();
}
